﻿using BingoClientModel;
using BingoHallServerConsole.Business.Account;
using BingoHallServerConsole.Business.Hurdle;
using BingoHallServerConsole.Business.Mall;
using BingoServerCommon.Common;


namespace BingoHallServerConsole
{
	public class PackageRegister
	{

		/// <summary>
		/// 注册
		/// </summary>
		public static void PackagesRegister()
		{
			//登录
			PackageFactory.Instance.RegisterPackage((int)EnumPackCommand.CS_Login, new CS_Login(EnumPackCommand.CS_Login));
			//匿名登录(也即访客模式)
			PackageFactory.Instance.RegisterPackage((int)EnumPackCommand.CS_AnonymousLogin, new CS_LoginAnonymous(EnumPackCommand.CS_AnonymousLogin));
			//获取成就
			PackageFactory.Instance.RegisterPackage((int)EnumPackCommand.CS_GetAchievements, new CS_GetAchievements(EnumPackCommand.CS_GetAchievements));
			//获取商城商品
			PackageFactory.Instance.RegisterPackage((int)EnumPackCommand.CS_MallGetAllCommodities, new CS_MallGetAllCommodities(EnumPackCommand.CS_MallGetAllCommodities));
			//购买商品
			PackageFactory.Instance.RegisterPackage((int)EnumPackCommand.CS_MallBuyCommodity, new CS_MallBuyCommodity(EnumPackCommand.CS_MallBuyCommodity));
			//获取关卡完成信息
			PackageFactory.Instance.RegisterPackage((int)EnumPackCommand.CS_GetHurdleInfo, new CS_GetHurdleInfo(EnumPackCommand.CS_GetHurdleInfo));
		}
	}
}
